package com.mapper.db4;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.entity.DStockTradeDaily2025;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 历史日K数据 Mapper 接口
 * </p>
 *
 * @author chl
 * @since 2025-05-23
 */
public interface DStockTradeDaily2025Mapper extends BaseMapper<DStockTradeDaily2025> {

    List<DStockTradeDaily2025> maxValue(@Param("startDate") String startDate, @Param("endDate") String endDate);
    List<DStockTradeDaily2025> maxValue2(String day);

    List<DStockTradeDaily2025> minValue(String startDate, String endDate);

    List<DStockTradeDaily2025> minValue2(String day);

    // 获取N天前数据
    List<DStockTradeDaily2025> selectByDay(String day);
}
